package com.example.java_chatroom1.server;

import com.example.java_chatroom1.mapper.FriendMapper;
import com.example.java_chatroom1.mapper.MessageMapper;
import com.example.java_chatroom1.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FriendService {
    @Autowired
    private FriendMapper friendMapper;


    public List<User> getFriendByUserId(Integer userId) {
        return friendMapper.getFriendInfoByUserId(userId);
    }

}
